const http = uni.$u.http

// export const LoginApiGet = (params) => http.get('/user/login/', {params:params})
export const LoginApiPost = (data = {}) => http.post('/user/login/', data,{custom: {auth: false}})
export const LoginRefreshTokenApiPost = (data = {}) => http.post('/baogong/refreshtoken/', data)
export const LoginApiPut = (id, data = {}) => http.put('/baogong/login/'+ id +'/', data)


// // 查询歌单
// export const ApiUserOriginalGet = (params) => http.get('/user/original/', {params:params})
// // 新增歌单
// export const ApiUserOriginalPost = (data) => http.post('/user/original/', data)
// // 删除歌单
// export const ApiUserOriginalDelete = (id) => http.delete('/user/original/' + id + '/')


// // 增加歌单的歌曲
// export const ApiUserSongPut = (data,params) => http.put('/user/song/',data, {params:params})
// // 查询歌单里面的歌曲
// export const ApiUserSongGet = (params) => http.get('/user/song/',{params:params})
// // 删除歌单全部歌曲
// export const ApiUserSongListDelete = (data) => http.delete('/user/song/',data)
// // 删除歌单单个歌曲
// export const ApiUserSongPkDelete = (id) => http.delete('/user/song/'+id+'/')
// // export const testApiDelete = (id) => http.delete('/ebapi/public_api/index/'+ id +'/')